package com.kaifamiao.N0805;

//使用匿名类
public class Node3 {

    interface A1 {
        void show();
    }

    public class Test {
        public static void main(String[] args) {
            A1 a1 = new A1() {
                public void show() {
                    System.out.println("我是匿名类的show方法");
                }
            };
            a1.show();
        }
    }
}
